<?php
namespace app\validate;

use think\Validate;

class CheckFlexClasses extends Validate
{

    protected $rule =   [
        'name'  => 'require|length:1,100',
        'e_name'  => 'require|length:1,100',
        'class_time'  => 'require|length:1,100',
        'e_class_time'  => 'require|length:1,100',
        'seats_type'  => 'require',
        'seats'  => 'require',
    ];

    protected $message  =   [
        'name.require' => '请输入班级名称(CN)！',
        'name.length' => '班级名称(CN)在1-100个字符！',
        'e_name.require' => '请输入班级名称(EN)！',
        'e_name.length' => '班级名称(EN)在1-100个字符！',
        'class_time.require' => '请输入上课时间(CN)！',
        'class_time.length' => '上课时间(CN)在1-100个字符！',
        'e_class_time.require' => '请输入上课时间(EN)！',
        'e_class_time.length' => '上课时间(EN)在1-100个字符！',
        'seats_type.require' => '席位',
        'seats.require' => '席位！',
    ];

}